package com.example.deliveryapp;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;

import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;

public class RestaurantMenuPage2Activity extends AppCompatActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        EdgeToEdge.enable(this);

        // 设置内容视图为您的布局XML
        setContentView(R.layout.restaurant_menu_page2);
        //返回上一Activity
        ImageButton back_restaurant_menu_page2 = findViewById(R.id.back_restaurant_menu_page2);
        back_restaurant_menu_page2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view){
                Intent intent = new Intent(RestaurantMenuPage2Activity.this, RestaurantMenuPageActivity.class);
            startActivity(intent);}
        });
        //订单视图，看看点了哪些菜
        Button button_view_order_on_RM_page2 = findViewById(R.id.button_view_order_on_RM_page2);
        button_view_order_on_RM_page2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(RestaurantMenuPage2Activity.this, ViewOrderPageActivity.class);
                startActivity(intent);
            }
        });
    }
}
